package cn.edu.zjut.medlinebackend.esdao;

import cn.edu.zjut.medlinebackend.model.dto.PostEsDTO;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface PostEsDao extends ElasticsearchRepository<PostEsDTO, Long> {
    List<PostEsDTO> findByUserId(Integer userId);
    List<PostEsDTO> findByContent(String searchText);
    List<PostEsDTO> findByTitle(String searchText);

}
